﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Plane : MonoBehaviour {

    public bool HadBuild = false;
    // Use this for initialization
    void Start () {
		
	}
	
	// Update is called once per frame
	void Update () {
		
	}
    private void OnCollisionStay(Collision collision)
    {
        if (collision.gameObject.layer == 11)
        {
            HadBuild = true;
        }
    }
    private void OnCollisionExit(Collision collision)
    {
        if (collision.gameObject.layer == 11)
        {
            HadBuild = false;
        }
    }
}
